package rjeutsky.models;

public class Publication {
	private Long id;
	private String name;
	private Long price;
	
	public Long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Long getPrice() {
		return price;
	}
	
	public void setPrice(Long price) {
		this.price = price;
	}
	
	@Override
	public String toString() {
		return String.format("Publication[%1$s (price = %2$d)]", name, price);
		
	}
}
